package cn.edu.xmu.oomall.liquidation.microservice;

import cn.edu.xmu.oomall.liquidation.microservice.vo.PointVo;
import cn.edu.xmu.privilegegateway.annotation.util.InternalReturnObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author HertzLiu
 * @create_time 2021/12/17 20:53
 * @package_name cn.edu.xmu.oomall.liquidation.microservice
 * @project_name oomall
 * @product_name IntelliJ IDEA
 * @description 其他模块
 */

@FeignClient(name = "share-service")
public interface ShareService {
    @GetMapping("/internal/calculate")
    public InternalReturnObject<PointVo> calculatePoints(@RequestParam Long orderItemId);
}
